package com.ihome.excel.xlsx.config.test;

import java.util.Map;

import org.junit.Test;

import com.ihome.excel.xlsx.config.ExcelRuleConfig;
import com.ihome.excel.xlsx.entity.Column;
import com.ihome.excel.xlsx.entity.ExcelRule;

public class ExcelRuleConfigTesting {

	@Test
	public void getAllConfig_Testing() {
		Map<String,ExcelRule> config = ExcelRuleConfig.getAllExcelRule();
		ExcelRule rule = null;
		for(String key : config.keySet()) {
			rule = config.get(key);
			System.out.println(rule.getRuleName());
			System.out.println(rule.getExcelName());
			System.out.println(rule.getClassName());
			System.out.println(rule.getSheetName());
			for(Column head : rule.getColumnHeadNameConfig()) {
				System.out.print(head.getName() + "|");
			}
			System.out.println("");
			for(String attribute : rule.getColumnAttributeNameConfig()) {
				System.out.print(attribute + "|");
			}
			System.out.println("\n*****************************************");
		}
	}
	
}
